﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using Microsoft.SqlServer.Server;
using SMDB_Connect.SMDB;

namespace GS_OM
{
    [ServiceContract]
    public interface IUnityWebService
    {
        [OperationContract]
        [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json,BodyStyle = WebMessageBodyStyle.Bare,
            UriTemplate = "GetPushByID/{id}")]
        List<DBOPush> GetPushByID(string id);

        [OperationContract]
        [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare,
            UriTemplate = "GetResByPushID/{id}")]
        List<DBOPushRes> GetResByPushID(string id);

        [OperationContract]
        [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare,
            UriTemplate = "GetAllStoreWithPush")]
        List<DBOStore> GetAllStore();

        [OperationContract]
        [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare,
            UriTemplate = "GetStoreByAcc/{id}")]
        DBOStore GetStoreByAcc(string id);
    }
}